//
//  CarModel_table.m
//  CarHome
//
//  Created by 王建男 on 14-9-22.
//  Copyright (c) 2014年 WJN_work@163.com. All rights reserved.
//

#import "CarModel_table.h"
#import "CarModel_Tableview.h"

@implementation CarModel_table

- (void)dealloc
{
    [_specitems release];
    _specitems = nil;
    [super dealloc];
}
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.specitems = [[NSMutableArray alloc] init];
        [_specitems release];
    }
    return self;
}

- (void)setValues:(NSMutableDictionary *)specitemgroups
{
    _groupname = [specitemgroups objectForKey:@"groupname"];
    for (NSMutableDictionary *dic in [specitemgroups objectForKey:@"specitems"]) {
        CarModel_Tableview *car = [[CarModel_Tableview alloc] init];
        [car values:dic];
        [_specitems addObject:car];
        [car release];
    }
}
@end
